package cn.wolfcode.car.vo;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@Getter
@Setter
public class SalaryVO {
    private List<String> cond = new ArrayList<>();
    private List<BigDecimal> total = new ArrayList<>();
    private List<BigDecimal> average = new ArrayList<>();

    public Object getJson() {
        HashMap<String, Object> map = new HashMap<>();
        map.put("cond", this.cond);
        map.put("total", this.total);
        map.put("average", this.average);
        return JSON.toJSONString(map);
    }
}
